<div class="topurl">
        	<span class="left">
            	Bạn đang xem: <a href="<?php echo base_url();?>"><b>Trang chủ</b></a>  
            	&raquo; <a href="<?php echo base_url().'khach-hang-noi-ve-chung-toi'?>">Khách hàng nói về chúng tôi</a>
            	&raquo; <a href="<?php echo base_url().'khach-hang-noi-ve-chung-toi/gui-y-kien'?>" class="current">Gửi ý kiến</a>
            </span>
            <span class="right">
            	<span>Hỗ trợ bán hàng:</span>
            	<?php if(isset($support) && $support != null) {?>
                <?php foreach($support as $k => $v) {?> 
            		<a href="ymsgr:sendim?<?php echo $v->yahoo;?>" title="<?php echo $v->yahoo;?>">	                            	
                    	<img src="http://opi.yahoo.com/online?u=<?php echo $v->yahoo;?>&t=1" title="Chat với <?php echo $v->yahoo;?>" alt="Chat với <?php echo $v->yahoo;?>" />
                    </a> 
            	<?php }?>
            	<?php }?>
                <img src="<?php echo img_link('i-phone.gif');?>" title="" alt="" /> <span><b>043 824 3536</b> | <b>0979 899 100</b></span>
            </span>
        </div>
        <div class="main">
        	<div class="b-contact">
            	<div class="bg-formsubmit">
                	<div class="title-form">Gửi ý kiến của bạn</div>
                    <ul class="form-item1">
                    	<?php
		                  $fullname = array(
		                    'name'    =>  'txtName',
		                    'style'   =>  'width:90%;',
		                    'value'   =>  set_value('txtName')
		                  );	
		                  $position = array(
		                    'name'    =>  'txtPosition',
		                    'style'   =>  'width:90%;',
		                    'value'   =>  set_value('txtPosition')
		                  );	 
		                  $company = array(
		                    'name'    =>  'txtCompany',
		                    'style'   =>  'width:90%;',
		                    'value'   =>  set_value('txtCompany')
		                  );
		                  $address = array(
		                    'name'    =>  'txtAddress',
		                    'style'   =>  'width:90%;',
		                    'value'   =>  set_value('txtAddress')
		                  );   
		                  $phone = array(
		                    'name'    =>  'txtPhone',
		                    'style'   =>  'width:60%;',
		                    'value'   =>  set_value('txtPhone')
		                  );                 
		                  $email = array(
		                    'name'    =>  'txtEmail',
		                    'style'   =>  'width:90%;',
		                    'value'   =>  set_value('txtEmail')
		                  );		                         
		                  $content = array(
		                    'name'    =>  'txtContent',
		                    'rows'    =>  '5',
		                    'cols'    =>  '20',
		                    'style'   =>   'width:90%'
		                  );
		                  
		                  $i=0;
		                  if($this->message->get("success")){
		                    echo $this->message->display("success");
		                  }
		                  if($this->message->get('error')){
		                  	echo $this->message->display("error");
		                  }    
		                                   
		                  if(form_error($fullname['name']))
                          {       	                        		
                        	$fullname['style'] = 'border:solid 1px #ff0000; width:90%;';                        	
                  		  }
                  		  if(form_error($company['name']))
                          {       	                        		
                        	$company['style'] = 'border:solid 1px #ff0000; width:90%;';                        	
                  		  }
                  		  if(form_error($position['name']))
                          {       	                        		
                        	$position['style'] = 'border:solid 1px #ff0000; width:90%;';                        	
                  		  }
                  		  if(form_error($address['name']))
                          {       	                        		
                        	$address['style'] = 'border:solid 1px #ff0000; width:90%;';                        	
                  		  }
                  		  if(form_error($phone['name']))
                          {       	                        		
                        	$phone['style'] = 'border:solid 1px #ff0000; width:60%;';                        	
                  		  }  
                  		  if(form_error($email['name']))
                          {       	                        		
                        	$email['style'] = 'border:solid 1px #ff0000; width:90%;';                        	
                  		  }                  		                  		  
                  		  if(form_error($content['name']))
                          {       	                        		
                        	$content['style'] = 'border:solid 1px #ff0000; width:96%;';                        	
                  		  } 
                  		  
                  		  if(form_error($fullname['name']) || form_error($position['name']) || form_error($company['name']) || form_error($address['name']) || form_error($phone['name']) || form_error($email['name']) || form_error($content['name']))
                  		  {
                  		  	echo "<li class='error'><p>Có lỗi xảy ra! hãy kiểm tra lại các trường thông tin!</p></li>";
                  		  }
	                	?>
                		                		
                		<form action="" method="post" enctype="multipart/form-data" action="<?php echo base_url()."khach-hang-noi-ve-chung-toi/gui-y-kien";?>">
                    	<li>
                        	<span class="left">Họ tên <font color="#ed1b24">*</font></span>
                            <span class="right">
                            	<?php echo form_input($fullname);?> 
                            </span>
                        </li>
                        <li>
                        	<span class="left">Địa chỉ</span>
                            <span class="right">
                            	<?php echo form_input($address);?>
                            </span>
                        </li>
                        <li>
                        	<span class="left">Số điện thoại <font color="#ed1b24">*</font></span>
                            <span class="right">
                            	<?php echo form_input($phone);?>
                            </span>
                        </li>
                        <li>
                        	<span class="left">Email <font color="#ed1b24">*</font></span>
                            <span class="right">
                            	<?php echo form_input($email);?>
                            </span>
                        </li>
                        <li>
                        	<span class="left">
                        		Mã xác nhận:<br />
                        	</span>
                                <img src="<?php echo base_url();?>client/reviews/captcha/<?php echo rand();?>"/><br />                                                                                  
                        </li>
                        <li>
                        	<span class="left">
                        		&nbsp;
                        	</span>
                        	 <span class="right">
                                <input type="text" name="val" value="" class="maxacnhan" style="width:30%;" />
                                <?php 
		                        	if(isset($error) && $error != "")
		                        	{                    
		                    			echo "<li class='error'>"."Mã xác nhận không hợp lệ"."</li>";
		                  			}
                  				?>
                  				</span>     
                        </li>
                        <li>
                        	<span class="left">&nbsp;</span>
                            <span class="right"><input type="submit" name="" value="Đặt hàng" class="btnsend2" /></span>
                        </li>
                    </ul>
                    <ul class="form-item2">
                    	<li>
                        	<span class="left">Công ty <font color="#ed1b24">*</font></span>
                            <span class="right">
                            	<?php echo form_input($company);?>
                            </span>
                        </li>
                    	<li>
                        	<span class="left">Chức vụ <font color="#ed1b24">*</font></span>
                            <span class="right">
                            	<?php echo form_input($position);?>
                            </span>
                        </li>
			            <li>
			                <span class="left">Ảnh logo</span>
			                <span class="right">			                	
			                	<input type="file" name="logo" value="" /><br />
			                </span>
			            </li>				        
                        <li>
                        	<span class="left">Nội dung <font color="#ed1b24">*</font></span>
                            <span class="right">                            	
                            	<?php echo form_textarea($content,set_value($content['name']));?>
                            </span>
                        </li>
                       </form>
                    </ul>
                </div>                
            </div>
        </div>